All Functions Used So Far, Week 5

sim_slopes

{interactions}

Perform simple slopes analysis for interaction effects.

seq

{base}

Create a sequence

complete.cases

{stats}

Find Complete Cases

read_excel

{readxl}

Read an Excel file

is.na

{base}

Check if a value is NA/elements of vector are NA

names

{base}

Get or set names of an object

t.test

{stats}

Performs one and two sample t-tests on vectors of data.

order

{base}

Get indexes that will sort a vector

setwd

{base}

Set Working Directory

head

{utils}

Show first 5 rows of a data frame

max

{base}

Get maximum of a vector

mean

{base}

Get mean of a vector

lm

{stats}

Fit linear models using least squares

factor

{base}

Create a factor

log

{base}

log (default base = e)

save_tt

{tinytable}

Save a tinytable object to a file

quantile

{stats}

Obtain empirical quantiles of a vector

summary

{base}

Obtain summary statistics or detailed regression output

install.packages

{utils}

Install R packages

str

{utils}

Get the structure of an R object

modelsummary

{modelsummary}

Creates regression and data tables

tibble

{tibble}

A modern data frame from the tidyverse

min

{base}

Get minimum of a vector

nrow

{base}

Get number of rows of a data frame

ifelse

{base}

Return a or b depending on the value of test

scale_color_manual

{ggplot2}

Manually sets the colours used in a ggplot color scale to user-specified values

rm

{base}

Remove objects

list

{base}

Create a list object

library

{base}

Load an R package

median

{stats}

Get median of a vector

group_tt

{tinytable}

Grouping in tinytable

range

{base}

Return range of values

ungroup

{dplyr}

Resolve grouping created with “group_by”

View

{base}

View a data frame

predict

{stats}

Generate predicted values from model objects

arrange

{dplyr}

Sort values of data frame according to a variable/combination of variables

cut

{base}

Convert Numeric to Factor

ls

{base}

Return a vector of character strings giving the names of the objects in the specified environment

read.csv

{utils}

Read a csv file to data frame. Specify stringsAsFactors = FALSE to keep all string columns as characters

var

{stats}

Calculate variance

data.frame

{base}

Create a data.frame from vectors

dnorm

{stats}

Density distribution for the normal distribution

nobs

{stats}

Return the number of observations in a model object

ordered

{dplyr}

Create an ordered factor

colMeans

{base}

Computes the means of each column of a numeric matrix or data frame

filter

{dplyr}

Filter out rows of a data frame according to logical vector

length

{base}

Returns number of elements in an object

mutate

{dplyr}

Create new variables

c

{base}

Combine values/vectors into a vector

sd

{stats}

Get standard deviation of a vector

glm

{base}

Fits generalized linear models

factor

{base}

Create factor variables

expression

{base}

Used in plots to add symbols to axes

group_by

{dplyr}

Group tibble/data.frame by a factor variable. All further tidyverse operations are performed group-wise

binomial

{base}

Family argument in glm()

The end!